<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改库存-仓库-商品信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-product-edit" th:object="${scmInventoryStashProduct}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">仓库id：</label>
                <div class="col-sm-8">
                    <input name="stashId" th:field="*{stashId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">仓库名称 ：</label>
                <div class="col-sm-8">
                    <textarea name="stashName" class="form-control">[[*{stashName}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品id ：</label>
                <div class="col-sm-8">
                    <input name="productId" th:field="*{productId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品编码 ：</label>
                <div class="col-sm-8">
                    <textarea name="productCode" class="form-control">[[*{productCode}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品名称 ：</label>
                <div class="col-sm-8">
                    <textarea name="productName" class="form-control">[[*{productName}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品数量 ：</label>
                <div class="col-sm-8">
                    <input name="productCount" th:field="*{productCount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品单位 ：</label>
                <div class="col-sm-8">
                    <input name="productUnit" th:field="*{productUnit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商品规格 ：</label>
                <div class="col-sm-8">
                    <input name="productSpec" th:field="*{productSpec}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">入库价格 单位分 ：</label>
                <div class="col-sm-8">
                    <input name="inStashAmount" th:field="*{inStashAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">出库价格 单位分  ：</label>
                <div class="col-sm-8">
                    <input name="outStashAmount" th:field="*{outStashAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">scm创建人：</label>
                <div class="col-sm-8">
                    <textarea name="createUser" class="form-control">[[*{createUser}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">scm创建人：</label>
                <div class="col-sm-8">
                    <textarea name="updateUser" class="form-control">[[*{updateUser}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/product";
        $("#form-product-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-product-edit').serialize());
            }
        }
    </script>
</body>
</html>
